package com.rt.cms.common.enums;

/**
 * Create with IDEA
 *
 * @author Wangzs
 * @Description
 * @Date 2018/6/15
 * @Time 17:04
 */
public enum CompanyStatus {

    Due_Diligence(1, "1", "待尽调"),
    Audit_Of_Department(2, "2", "待部门审核"),
    Audit_Of_Wind(3, "3", "待风控审核"),
    Wait_Online(4, "4", "待上线"),
    Loan_Management(5, "5", "贷后管理"),
    On_File(6, "6", "存档");

    private int    num;
    private String code;
    private String name;

    private CompanyStatus(int num, String code, String name) {
        this.num = num;
        this.code = code;
        this.name = name;
    }
    public static String getByNum(int num) {
        for (CompanyStatus comType : CompanyStatus.values()) {
            if (comType.getNum() == num) {
                return comType.name;
            }
        }
        return null;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
